﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectClientInfo.aspx.cs" Inherits="SelectClientInfo"  Theme="SkinFile"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>选择客户</title>
    <base target="_self" /> 
    <link href="css/default.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color:White;">
    <form id="form1" runat="server">
    <h1 id="pagetitle" class="pagetitle">
        选择客户
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <div class="anistyle" id="ani">
                    正在加载数据，请耐心等待...
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </h1>
    <script type="text/javascript">
        function SelectItem(obj)
        {
            window.returnValue=obj; 
            self.close();
        }
    </script>

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
        <ContentTemplate>
            <div class="InfoArea">
                <asp:Panel ID="SummaryPanel" runat="server" Width="100%">
                    <asp:GridView ID="ClientGridView" runat="server" AutoGenerateColumns="False" Width="100%"
                        DataKeyNames="Client_ID" SkinID="gridviewSkin">
                        <%--<RowStyle BackColor="#EFF3FB" Height="24px" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White"  Height="24px"/>
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />--%>

                        <Columns>
                            <asp:BoundField DataField="Client_ID" HeaderText="客户编号">
                                <HeaderStyle Width="60px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Corp_Name" HeaderText="单位名称">
                                <HeaderStyle Width="120px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Linkman" HeaderText="联系人">
                                <HeaderStyle Width="50px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Consigner" HeaderText="委托人">
                                <HeaderStyle Width="50px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="fax" HeaderText="传真">
                                <HeaderStyle Width="120px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Phone" HeaderText="联系电话">
                                <HeaderStyle Width="120px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="email" HeaderText="电子邮箱">
                                <HeaderStyle Width="120px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="选择">
                                <ItemTemplate>
                                    <input id="Button1" type="button" value='选择' onclick="javascript:SelectItem('{\'client_id\':\'<%# Eval("Client_ID").ToString()%>\',\'corp_name\':\'<%# Eval("Corp_Name").ToString()%>\',\'consigner\':\'<%# Eval("Consigner").ToString()%>\',\'fax\':\'<%# Eval("fax").ToString()%>\',\'phone\':\'<%# Eval("phone").ToString()%>\',\'email\':\'<%# Eval("email").ToString()%>\',\'linkman\':\'<%# Eval("linkman").ToString()%>\'}');"/>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" Width="40px" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <webdiyer:AspNetPager ID="AspNetPager" runat="server" ShowCustomInfoSection="Left"
                        CustomInfoHTML="总记录数：%RecordCount%，总页数：%PageCount%，当前为第%CurrentPageIndex%页" CustomInfoTextAlign="left"
                        CustomInfoStyle="padding-top:8px;font-weight:bold;" HorizontalAlign="right" FirstPageText="首页"
                        LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager_PageChanged"
                        PrevPageText="上一页" ShowPageIndexBox="Always" SubmitButtonText="Go" TextAfterPageIndexBox="页"
                        TextBeforePageIndexBox="转到" CssClass="anpager" CurrentPageButtonClass="cpb">
                    </webdiyer:AspNetPager>
                </asp:Panel>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
